<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ include file="../common/header.jsp"%>

  <h1>Update Question Table</h1>
  <hr/>

  <form:form action="/questionnaire/questiontable/updateItemPost" method="post" commandName="questiontable" role="form">
    <div class="form-group">
      <label for="name">Name:</label>
      <input type="text" class="form-control" id="name" name="name" placeholder="Enter name:"
             value="${item.name}"/>
    </div>
    <div class="form-group">
      <label for="question">Question:</label>
      <input type="text" class="form-control" id="question" name="question" placeholder="Enter Question:"
             value="${item.question}"/>
    </div>
    <div class="form-group">
      <label for="note">Note:</label>
      <input type="text" class="form-control" id="note" name="note" placeholder="Enter Note:"
             value="${item.note}"/>
    </div>
    <!-- 把 id 一并写入 userP 中 -->
    <input type="hidden" id="id" name="id" value="${item.id}"/>

    <div class="form-group">
      <button type="submit" class="btn btn-sm btn-success">submit</button>
    </div>
  </form:form>
<%@ include file="../common/footer.jsp"%>